{% extends "base.html" %}{% load i18n crm_tags %} {% block title %}{% translate "Attendance" %}{% endblock %} {% block content %}

{% translate "Attendance" %}

{% if view == "day" %}{% if is_today %}{% translate "Today" %}, {% endif %}{{ day|date:"l j F Y" }}. {% blocktranslate trimmed with n=present total=team_size %}{{ n }} of {{ total }} signed in.{% endblocktranslate %}{% else %}{{ first|date:"F Y" }}{% endif %}

{% if view == "day" %} {{ prev_day|date:"D j M" }} {% if next_day %}{{ next_day|date:"D j M" }}{% endif %} {% translate "Download (CSV)" %} {% else %} {{ prev_month|date:"M Y" }} {% if next_month %}{{ next_month|date:"M Y" }}{% endif %} {% translate "Download (CSV)" %} {% endif %}

{% translate "Agents only. Time starts when an agent signs in and stops when they sign out. If they close the browser without signing out, it stops at their last activity." %}

{% if view == "day" %} {% for r in rows %} {% if r.s %} {% else %} {% endif %} {% endfor %} {% else %} {% for r in rows %} {% endfor %} {% endif %}
{% translate "Name" %}{% translate "Signed in" %}{% translate "Until" %}{% translate "Hours" %}
{{ r.person.display_name }}{{ r.s.first_in|clock }} {% if r.s.online %}{% translate "Online now" %}{% else %}{{ r.s.last_out|clock }}{% endif %} {{ r.s.total|hours }} {% if not r.s.online %}{% if r.s.signed_out %}{% translate "Signed out" %}{% else %}{% translate "Last activity" %}{% endif %}{% endif %}{% translate "Not signed in" %}—
{% translate "Name" %}{% translate "Days present" %}{% translate "Hours" %}{% translate "Average per day" %}
{{ r.person.display_name }} {{ r.days }} {% if r.days %}{{ r.total|hours }}{% else %}—{% endif %} {% if r.average %}{{ r.average|hours }}{% else %}—{% endif %}
{% endblock %}